package com.orphan.audit.controller;


import com.orphan.audit.po.Discount;
import com.orphan.audit.po.Supplier;
import com.orphan.audit.service.IDiscountService;
import com.orphan.audit.service.ISupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author yichen
 * @since 2021-07-14
 */
@RestController
@RequestMapping("/discount")
public class DiscountController {

    @Autowired
    public IDiscountService iDiscountService;
    @GetMapping("/gatAll")
    private List<Discount> getAll(){
        List<Discount> discounts = iDiscountService.getAll();
        return discounts;
    }


}
